package cr5xdll;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class MainFrame
    extends JFrame {
  String sEcrId;
  CR5X cr5x = new CR5X();
  JFileChooser fc = new JFileChooser();

  JPanel contentPane;
  BorderLayout borderLayout1 = new BorderLayout();
  JTabbedPane tabOwn = new JTabbedPane();
  JPanel pnlRegEcr = new JPanel();
  JPanel pnlTxtToHex = new JPanel();
  JPanel pnlDownload = new JPanel();
  JButton btnRegEcr = new JButton();
  GridBagLayout gridBagLayout1 = new GridBagLayout();
  JTextField edIP = new JTextField();
  JLabel jLabel1 = new JLabel();
  JLabel jLabel2 = new JLabel();
  JTextField edPort = new JTextField();
  JPanel pnlUpload = new JPanel();
  JPanel pnlHexToTxt = new JPanel();
  JPanel pnlOther = new JPanel();
  JTextField edBaudRate = new JTextField();
  JTextField edCommName = new JTextField();
  JLabel jLabel3 = new JLabel();
  JComboBox cbxEcrId = new JComboBox();
  JComboBox cbxProtocol = new JComboBox();
  JCheckBox chkbIsDebug = new JCheckBox();
  JCheckBox chkbIsModem = new JCheckBox();
  JTextField edPhoneNo = new JTextField();
  JLabel jLabel4 = new JLabel();
  JLabel jLabel5 = new JLabel();
  JLabel jLabel6 = new JLabel();
  JLabel jLabel7 = new JLabel();
  GridBagLayout gridBagLayout2 = new GridBagLayout();
  JButton btnUpXRpt = new JButton();
  JScrollPane jScrollPane1 = new JScrollPane();
  GridBagLayout gridBagLayout3 = new GridBagLayout();
  JButton btnDnEPLU = new JButton();
  GridBagLayout gridBagLayout4 = new GridBagLayout();
  GridBagLayout gridBagLayout5 = new GridBagLayout();
  GridBagLayout gridBagLayout6 = new GridBagLayout();
  JButton btnUpZRpt = new JButton();
  JButton btnUpPluData = new JButton();
  JButton btnDnUPLU = new JButton();
  JButton btnDnMemCard = new JButton();
  JButton btnDnMemRate = new JButton();
  JButton btnDnMemRel = new JButton();
  JButton btnDnSchedule = new JButton();
  JButton btnDnPluKey = new JButton();
  JButton btnDnFtpPluKey = new JButton();
  JButton btnDnClerk = new JButton();
  JButton btnDnParam = new JButton();
  JButton btnDnQtyDisc = new JButton();
  JButton btnDnDep = new JButton();
  JButton btnDnAdv = new JButton();
  JButton btnDnTc = new JButton();
  JButton btnDnFdRkd = new JButton();
  JButton btnDnFdThd = new JButton();
  JButton btnDnFdPdd = new JButton();
  JButton btnDnTimeSync = new JButton();
  JButton btnUpTr = new JButton();
  JButton jButton3 = new JButton();
  JTextField jTextField1 = new JTextField();
  JLabel jLabel8 = new JLabel();
  JButton btnUpDepData = new JButton();
  JButton btnUpPXRpt = new JButton();
  JButton btnUpPZRpt = new JButton();
  JButton btnUpXPluRpt = new JButton();
  JButton btnUpZPluRpt = new JButton();
  JButton btnUpHourlyRpt = new JButton();
  JButton btnUpSpRpt = new JButton();
  JButton btnUpXZZRpt = new JButton();
  JButton btnUpZZZRpt = new JButton();
  JButton btnUpFdRpt = new JButton();
  JButton btnUpParam = new JButton();
  JButton btnTTHPLU = new JButton();
  JButton btnTTHMemCard = new JButton();
  JButton btnTTHMemRate = new JButton();
  JButton btnTTHMemRel = new JButton();
  JButton btnTTHSchedule = new JButton();
  JButton btnTTHPluKey = new JButton();
  JButton btnTTHFtpPluKey = new JButton();
  JButton btnTTHClerk = new JButton();
  JButton btnTTHParam = new JButton();
  JButton btnTTHQtyDisc = new JButton();
  JButton btnTTHDep = new JButton();
  JButton btnTTHAdv = new JButton();
  JButton btnTTHTc = new JButton();
  JButton btnTTHFdRkd = new JButton();
  JButton btnTTHFdThd = new JButton();
  JButton btnTTHFdPdd = new JButton();
  JButton btnHTTXRpt = new JButton();
  JButton btnHTTZRpt = new JButton();
  JButton btnHTTTr = new JButton();
  JButton btnHTTPluData = new JButton();
  JButton btnHTTDep = new JButton();
  JButton btnHTTPXRpt = new JButton();
  JButton btnHTTPZRpt = new JButton();
  JButton btnHTTXPluRpt = new JButton();
  JButton btnHTTZPluRpt = new JButton();
  JButton btnHTTHourlyRpt = new JButton();
  JButton btnHTTSpRpt = new JButton();
  JButton btnHTTXZZRpt = new JButton();
  JButton btnHTTZZZRpt = new JButton();
  JButton btnHTTFdRpt = new JButton();
  JButton btnHTTParam = new JButton();
  JButton btnTestComm = new JButton();

  //Construct the frame
  public MainFrame() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
      jbInit();
    }
    catch (Exception e) {
      e.printStackTrace();
    }
  }

  private void InitObj() {
    cr5x.CreateTransObj();
    cr5x.StartComRecvDataThd();
  }

  private void FreeObj() {
    cr5x.StopComRecvDataThd();
    cr5x.FreeTransObj();
  }

  private void AppendMsg(int msgType, int iEcrId, String sIp, int iPort,
                         int iPackNo,
                         int iTaskId, String sPercent, String sLog) {
    System.out.println("iEcrId="+iEcrId+" msgType="+msgType+" sIp="+sIp+" iPort="+iPort+" iTaskId="+iTaskId+
                       " sPercent="+sPercent+" sLog="+sLog);
    if (msgType == 4){
      JOptionPane.showMessageDialog(this,"Task: "+iTaskId+" OK");
    }else if (msgType == 5){
      JOptionPane.showMessageDialog(this,"Task: "+iTaskId+" Fail");
    }
     System.out.println(msgType+"   "+sLog);
  }

  //Component initialization
  private void jbInit() throws Exception {
    InitObj();
    contentPane = (JPanel)this.getContentPane();
    contentPane.setLayout(borderLayout1);
    this.setSize(new Dimension(539, 382));
    this.setTitle("DLL java demo 程序");

    cbxEcrId.addItem("37001184");
    cbxProtocol.addItem("UDP");
    cbxProtocol.addItem("COM");
    contentPane = (JPanel)this.getContentPane();
    contentPane.setLayout(borderLayout1);
    this.setSize(new Dimension(557, 409));
    this.setTitle("DLL java demo 程序");
    pnlRegEcr.setLayout(gridBagLayout1);
    btnRegEcr.setFont(new java.awt.Font("宋体", 0, 12));
    btnRegEcr.setText("注册ECR");
    btnRegEcr.addActionListener(new MainFrame_btnRegEcr_actionAdapter(this));
    edIP.setFont(new java.awt.Font("宋体", 0, 12));
    edIP.setText("192.168.1.87");
    jLabel1.setFont(new java.awt.Font("宋体", 0, 12));
    jLabel1.setText("机号");
    jLabel2.setFont(new java.awt.Font("宋体", 0, 12));
    jLabel2.setPreferredSize(new Dimension(72, 15));
    jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel2.setText("端口");
    edPort.setFont(new java.awt.Font("宋体", 0, 12));
    edPort.setText("5002");
    pnlRegEcr.setFont(new java.awt.Font("宋体", 0, 12));
    pnlRegEcr.setAlignmentX( (float) 0.5);
    tabOwn.setFont(new java.awt.Font("宋体", 0, 12));
    tabOwn.setDebugGraphicsOptions(0);
    edBaudRate.setFont(new java.awt.Font("宋体", 0, 12));
    edBaudRate.setText("38400");
    edCommName.setFont(new java.awt.Font("宋体", 0, 12));
    edCommName.setText("COM2");
    jLabel3.setFont(new java.awt.Font("宋体", 0, 12));
    jLabel3.setPreferredSize(new Dimension(72, 15));
    jLabel3.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel3.setText("波特率");
    chkbIsDebug.setFont(new java.awt.Font("宋体", 0, 12));
    chkbIsDebug.setSelected(true);
    chkbIsDebug.setText("显示调试信息");
    chkbIsModem.setFont(new java.awt.Font("宋体", 0, 12));
    chkbIsModem.setText("使用MODEM");
    edPhoneNo.setFont(new java.awt.Font("宋体", 0, 12));
    edPhoneNo.setText("");
    jLabel4.setFont(new java.awt.Font("宋体", 0, 12));
    jLabel4.setPreferredSize(new Dimension(72, 15));
    jLabel4.setHorizontalAlignment(SwingConstants.RIGHT);
    jLabel4.setHorizontalTextPosition(SwingConstants.TRAILING);
    jLabel4.setText("通讯协议类型");
    jLabel5.setFont(new java.awt.Font("宋体", 0, 12));
    jLabel5.setText("IP地址");
    jLabel6.setFont(new java.awt.Font("宋体", 0, 12));
    jLabel6.setText("COM口名称");
    jLabel7.setFont(new java.awt.Font("宋体", 0, 12));
    jLabel7.setText("电话号码");
    cbxEcrId.setFont(new java.awt.Font("宋体", 0, 12));
    cbxProtocol.setFont(new java.awt.Font("宋体", 0, 12));
    pnlUpload.setLayout(gridBagLayout2);
    btnUpXRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpXRpt.setMaximumSize(new Dimension(153, 23));
    btnUpXRpt.setMinimumSize(new Dimension(153, 23));
    btnUpXRpt.setPreferredSize(new Dimension(153, 23));
    btnUpXRpt.setText("上载读日销售报表");
    btnUpXRpt.addActionListener(new MainFrame_btnUpXRpt_actionAdapter(this));
    pnlUpload.setFont(new java.awt.Font("宋体", 0, 12));
    pnlDownload.setLayout(gridBagLayout3);
    btnDnEPLU.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnEPLU.setPreferredSize(new Dimension(153, 23));
    btnDnEPLU.setActionCommand("下载PLU资料");
    btnDnEPLU.setText("先擦除后下载全部单品");
    btnDnEPLU.addActionListener(new MainFrame_btnDnEPLU_actionAdapter(this));
    pnlTxtToHex.setLayout(gridBagLayout4);
    pnlHexToTxt.setLayout(gridBagLayout5);
    pnlOther.setLayout(gridBagLayout6);
    btnUpZRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpZRpt.setMaximumSize(new Dimension(153, 23));
    btnUpZRpt.setMinimumSize(new Dimension(153, 23));
    btnUpZRpt.setPreferredSize(new Dimension(153, 23));
    btnUpZRpt.setText("上载清日销售报表");
    btnUpZRpt.addActionListener(new MainFrame_btnUpZRpt_actionAdapter(this));
    btnUpPluData.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpPluData.setMaximumSize(new Dimension(153, 23));
    btnUpPluData.setMinimumSize(new Dimension(153, 23));
    btnUpPluData.setPreferredSize(new Dimension(153, 23));
    btnUpPluData.setText("上载单品数据");
    btnUpPluData.addActionListener(new MainFrame_btnUpPluData_actionAdapter(this));
    btnDnUPLU.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnUPLU.setMaximumSize(new Dimension(153, 23));
    btnDnUPLU.setMinimumSize(new Dimension(153, 23));
    btnDnUPLU.setPreferredSize(new Dimension(153, 23));
    btnDnUPLU.setText("更新部份单品");
    btnDnUPLU.addActionListener(new MainFrame_btnDnUPLU_actionAdapter(this));
    btnDnMemCard.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnMemCard.setMaximumSize(new Dimension(153, 23));
    btnDnMemCard.setMinimumSize(new Dimension(153, 23));
    btnDnMemCard.setPreferredSize(new Dimension(153, 23));
    btnDnMemCard.setText("下载特殊会员资料");
    btnDnMemCard.addActionListener(new MainFrame_btnDnMemCard_actionAdapter(this));
    btnDnMemRate.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnMemRate.setText("下载商品类别会员扣率");
    btnDnMemRate.addActionListener(new MainFrame_btnDnMemRate_actionAdapter(this));
    btnDnMemRel.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnMemRel.setMaximumSize(new Dimension(153, 23));
    btnDnMemRel.setMinimumSize(new Dimension(153, 23));
    btnDnMemRel.setPreferredSize(new Dimension(153, 23));
    btnDnMemRel.setText("下载商品类别关系表");
    btnDnMemRel.addActionListener(new MainFrame_btnDnMemRel_actionAdapter(this));
    btnDnSchedule.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnSchedule.setMaximumSize(new Dimension(153, 23));
    btnDnSchedule.setMinimumSize(new Dimension(153, 23));
    btnDnSchedule.setPreferredSize(new Dimension(153, 23));
    btnDnSchedule.setText("下载打折排程表");
    btnDnSchedule.addActionListener(new MainFrame_btnDnSchedule_actionAdapter(this));
    btnDnPluKey.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnPluKey.setMaximumSize(new Dimension(153, 23));
    btnDnPluKey.setMinimumSize(new Dimension(153, 23));
    btnDnPluKey.setPreferredSize(new Dimension(153, 23));
    btnDnPluKey.setText("下载单品热键");
    btnDnPluKey.addActionListener(new MainFrame_btnDnPluKey_actionAdapter(this));
    btnDnFtpPluKey.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnFtpPluKey.setMaximumSize(new Dimension(153, 23));
    btnDnFtpPluKey.setMinimumSize(new Dimension(153, 23));
    btnDnFtpPluKey.setPreferredSize(new Dimension(153, 23));
    btnDnFtpPluKey.setText("下载FTP称单品热键");
    btnDnFtpPluKey.addActionListener(new MainFrame_btnDnFtpPluKey_actionAdapter(this));
    btnDnClerk.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnClerk.setMaximumSize(new Dimension(153, 23));
    btnDnClerk.setMinimumSize(new Dimension(153, 23));
    btnDnClerk.setPreferredSize(new Dimension(153, 23));
    btnDnClerk.setText("下载收银员资料");
    btnDnClerk.addActionListener(new MainFrame_btnDnClerk_actionAdapter(this));
    btnDnParam.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnParam.setMaximumSize(new Dimension(153, 23));
    btnDnParam.setMinimumSize(new Dimension(153, 23));
    btnDnParam.setPreferredSize(new Dimension(153, 23));
    btnDnParam.setText("下载ECR参数设定");
    btnDnParam.addActionListener(new MainFrame_btnDnParam_actionAdapter(this));
    btnDnQtyDisc.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnQtyDisc.setMaximumSize(new Dimension(153, 23));
    btnDnQtyDisc.setMinimumSize(new Dimension(153, 23));
    btnDnQtyDisc.setPreferredSize(new Dimension(153, 23));
    btnDnQtyDisc.setText("下载数量打折排程表");
    btnDnQtyDisc.addActionListener(new MainFrame_btnDnQtyDisc_actionAdapter(this));
    btnDnDep.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnDep.setMaximumSize(new Dimension(153, 23));
    btnDnDep.setMinimumSize(new Dimension(153, 23));
    btnDnDep.setPreferredSize(new Dimension(153, 23));
    btnDnDep.setText("下载部门资料");
    btnDnDep.addActionListener(new MainFrame_btnDnDep_actionAdapter(this));
    btnDnAdv.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnAdv.setMaximumSize(new Dimension(153, 23));
    btnDnAdv.setMinimumSize(new Dimension(153, 23));
    btnDnAdv.setPreferredSize(new Dimension(153, 23));
    btnDnAdv.setText("下载广告词");
    btnDnAdv.addActionListener(new MainFrame_btnDnAdv_actionAdapter(this));
    btnDnTc.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnTc.setMaximumSize(new Dimension(153, 23));
    btnDnTc.setMinimumSize(new Dimension(153, 23));
    btnDnTc.setPreferredSize(new Dimension(153, 23));
    btnDnTc.setText("下载套餐资料");
    btnDnTc.addActionListener(new MainFrame_btnDnTc_actionAdapter(this));
    btnDnFdRkd.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnFdRkd.setMaximumSize(new Dimension(153, 23));
    btnDnFdRkd.setMinimumSize(new Dimension(153, 23));
    btnDnFdRkd.setPreferredSize(new Dimension(153, 23));
    btnDnFdRkd.setText("下载分店入库单");
    btnDnFdRkd.addActionListener(new MainFrame_btnDnFdRkd_actionAdapter(this));
    btnDnFdThd.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnFdThd.setMaximumSize(new Dimension(153, 23));
    btnDnFdThd.setMinimumSize(new Dimension(153, 23));
    btnDnFdThd.setPreferredSize(new Dimension(153, 23));
    btnDnFdThd.setText("下载分店退货单");
    btnDnFdThd.addActionListener(new MainFrame_btnDnFdThd_actionAdapter(this));
    btnDnFdPdd.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnFdPdd.setMaximumSize(new Dimension(153, 23));
    btnDnFdPdd.setMinimumSize(new Dimension(153, 23));
    btnDnFdPdd.setPreferredSize(new Dimension(153, 23));
    btnDnFdPdd.setText("下载分店盘点单");
    btnDnFdPdd.addActionListener(new MainFrame_btnDnFdPdd_actionAdapter(this));
    btnDnTimeSync.setFont(new java.awt.Font("宋体", 0, 12));
    btnDnTimeSync.setMaximumSize(new Dimension(153, 23));
    btnDnTimeSync.setMinimumSize(new Dimension(153, 23));
    btnDnTimeSync.setPreferredSize(new Dimension(153, 23));
    btnDnTimeSync.setText("同步收银机时间");
    btnUpTr.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpTr.setMaximumSize(new Dimension(153, 23));
    btnUpTr.setMinimumSize(new Dimension(153, 23));
    btnUpTr.setPreferredSize(new Dimension(153, 23));
    btnUpTr.setText("上载交易明细报表");
    btnUpTr.addActionListener(new MainFrame_btnUpTr_actionAdapter(this));
    jButton3.setFont(new java.awt.Font("宋体", 0, 12));
    jButton3.setMaximumSize(new Dimension(153, 23));
    jButton3.setMinimumSize(new Dimension(153, 23));
    jButton3.setPreferredSize(new Dimension(153, 23));
    jButton3.setText("按流水号上载交易明细");
    jTextField1.setText("jTextField1");
    jLabel8.setFont(new java.awt.Font("宋体", 0, 12));
    jLabel8.setText("流水号");
    btnUpDepData.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpDepData.setMaximumSize(new Dimension(153, 23));
    btnUpDepData.setMinimumSize(new Dimension(153, 23));
    btnUpDepData.setPreferredSize(new Dimension(153, 23));
    btnUpDepData.setText("上载部门数据");
    btnUpDepData.addActionListener(new MainFrame_btnUpDepData_actionAdapter(this));
    btnUpPXRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpPXRpt.setMaximumSize(new Dimension(153, 23));
    btnUpPXRpt.setMinimumSize(new Dimension(153, 23));
    btnUpPXRpt.setPreferredSize(new Dimension(153, 23));
    btnUpPXRpt.setText("上载读区间日销售报表");
    btnUpPXRpt.addActionListener(new MainFrame_btnUpPXRpt_actionAdapter(this));
    btnUpPZRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpPZRpt.setMaximumSize(new Dimension(153, 23));
    btnUpPZRpt.setMinimumSize(new Dimension(153, 23));
    btnUpPZRpt.setPreferredSize(new Dimension(153, 23));
    btnUpPZRpt.setText("上载清区间日销售报表");
    btnUpPZRpt.addActionListener(new MainFrame_btnUpPZRpt_actionAdapter(this));
    btnUpXPluRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpXPluRpt.setMaximumSize(new Dimension(153, 23));
    btnUpXPluRpt.setMinimumSize(new Dimension(153, 23));
    btnUpXPluRpt.setPreferredSize(new Dimension(153, 23));
    btnUpXPluRpt.setText("上载读单品报表");
    btnUpXPluRpt.addActionListener(new MainFrame_btnUpXPluRpt_actionAdapter(this));
    btnUpZPluRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpZPluRpt.setMaximumSize(new Dimension(153, 23));
    btnUpZPluRpt.setMinimumSize(new Dimension(153, 23));
    btnUpZPluRpt.setPreferredSize(new Dimension(153, 23));
    btnUpZPluRpt.setText("上载清单品报表");
    btnUpZPluRpt.addActionListener(new MainFrame_btnUpZPluRpt_actionAdapter(this));
    btnUpHourlyRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpHourlyRpt.setMaximumSize(new Dimension(153, 23));
    btnUpHourlyRpt.setMinimumSize(new Dimension(153, 23));
    btnUpHourlyRpt.setPreferredSize(new Dimension(153, 23));
    btnUpHourlyRpt.setText("上载时段报表");
    btnUpHourlyRpt.addActionListener(new MainFrame_btnUpHourlyRpt_actionAdapter(this));
    btnUpSpRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpSpRpt.setMaximumSize(new Dimension(153, 23));
    btnUpSpRpt.setMinimumSize(new Dimension(153, 23));
    btnUpSpRpt.setPreferredSize(new Dimension(153, 23));
    btnUpSpRpt.setText("上载促销员报表");
    btnUpSpRpt.addActionListener(new MainFrame_btnUpSpRpt_actionAdapter(this));
    btnUpXZZRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpXZZRpt.setMaximumSize(new Dimension(153, 23));
    btnUpXZZRpt.setMinimumSize(new Dimension(153, 23));
    btnUpXZZRpt.setPreferredSize(new Dimension(153, 23));
    btnUpXZZRpt.setText("上载读桌帐报表");
    btnUpXZZRpt.addActionListener(new MainFrame_btnUpXZZRpt_actionAdapter(this));
    btnUpZZZRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpZZZRpt.setMaximumSize(new Dimension(153, 23));
    btnUpZZZRpt.setMinimumSize(new Dimension(153, 23));
    btnUpZZZRpt.setPreferredSize(new Dimension(153, 23));
    btnUpZZZRpt.setText("上载清桌帐报表");
    btnUpZZZRpt.addActionListener(new MainFrame_btnUpZZZRpt_actionAdapter(this));
    btnUpFdRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpFdRpt.setMaximumSize(new Dimension(153, 23));
    btnUpFdRpt.setMinimumSize(new Dimension(153, 23));
    btnUpFdRpt.setPreferredSize(new Dimension(153, 23));
    btnUpFdRpt.setText("上载分店资料报表");
    btnUpFdRpt.addActionListener(new MainFrame_btnUpFdRpt_actionAdapter(this));
    btnUpParam.setFont(new java.awt.Font("宋体", 0, 12));
    btnUpParam.setMaximumSize(new Dimension(153, 23));
    btnUpParam.setMinimumSize(new Dimension(153, 23));
    btnUpParam.setPreferredSize(new Dimension(153, 23));
    btnUpParam.setText("上载收银员参数");
    btnUpParam.addActionListener(new MainFrame_btnUpParam_actionAdapter(this));
    btnTTHPLU.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHPLU.setMaximumSize(new Dimension(153, 23));
    btnTTHPLU.setMinimumSize(new Dimension(153, 23));
    btnTTHPLU.setPreferredSize(new Dimension(153, 23));
    btnTTHPLU.setText("单品资料");
    btnTTHPLU.addActionListener(new MainFrame_btnTTHPLU_actionAdapter(this));
    btnTTHMemCard.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHMemCard.setMaximumSize(new Dimension(153, 23));
    btnTTHMemCard.setMinimumSize(new Dimension(153, 23));
    btnTTHMemCard.setPreferredSize(new Dimension(153, 23));
    btnTTHMemCard.setText("特殊会员资料");
    btnTTHMemCard.addActionListener(new MainFrame_btnTTHMemCard_actionAdapter(this));
    btnTTHMemRate.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHMemRate.setMaximumSize(new Dimension(153, 23));
    btnTTHMemRate.setMinimumSize(new Dimension(153, 23));
    btnTTHMemRate.setPreferredSize(new Dimension(153, 23));
    btnTTHMemRate.setText("商品类别会员扣率");
    btnTTHMemRate.addActionListener(new MainFrame_btnTTHMemRate_actionAdapter(this));
    btnTTHMemRel.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHMemRel.setMaximumSize(new Dimension(153, 23));
    btnTTHMemRel.setMinimumSize(new Dimension(153, 23));
    btnTTHMemRel.setPreferredSize(new Dimension(153, 23));
    btnTTHMemRel.setText("商品类别关系");
    btnTTHMemRel.addActionListener(new MainFrame_btnTTHMemRel_actionAdapter(this));
    btnTTHSchedule.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHSchedule.setMaximumSize(new Dimension(153, 23));
    btnTTHSchedule.setMinimumSize(new Dimension(153, 23));
    btnTTHSchedule.setPreferredSize(new Dimension(153, 23));
    btnTTHSchedule.setText("打折排程表");
    btnTTHSchedule.addActionListener(new MainFrame_btnTTHSchedule_actionAdapter(this));
    btnTTHPluKey.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHPluKey.setMaximumSize(new Dimension(153, 23));
    btnTTHPluKey.setMinimumSize(new Dimension(153, 23));
    btnTTHPluKey.setPreferredSize(new Dimension(153, 23));
    btnTTHPluKey.setText("单品热键");
    btnTTHPluKey.addActionListener(new MainFrame_btnTTHPluKey_actionAdapter(this));
    btnTTHFtpPluKey.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHFtpPluKey.setMaximumSize(new Dimension(153, 23));
    btnTTHFtpPluKey.setMinimumSize(new Dimension(153, 23));
    btnTTHFtpPluKey.setPreferredSize(new Dimension(153, 23));
    btnTTHFtpPluKey.setText("FTP称单品热键");
    btnTTHFtpPluKey.addActionListener(new MainFrame_btnTTHFtpPluKey_actionAdapter(this));
    btnTTHClerk.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHClerk.setMaximumSize(new Dimension(153, 23));
    btnTTHClerk.setMinimumSize(new Dimension(153, 23));
    btnTTHClerk.setPreferredSize(new Dimension(153, 23));
    btnTTHClerk.setText("收银员资料");
    btnTTHClerk.addActionListener(new MainFrame_btnTTHClerk_actionAdapter(this));
    btnTTHParam.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHParam.setMaximumSize(new Dimension(153, 23));
    btnTTHParam.setMinimumSize(new Dimension(153, 23));
    btnTTHParam.setPreferredSize(new Dimension(153, 23));
    btnTTHParam.setText("收银机参数设定");
    btnTTHParam.addActionListener(new MainFrame_btnTTHParam_actionAdapter(this));
    btnTTHQtyDisc.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHQtyDisc.setMaximumSize(new Dimension(153, 23));
    btnTTHQtyDisc.setMinimumSize(new Dimension(153, 23));
    btnTTHQtyDisc.setPreferredSize(new Dimension(153, 23));
    btnTTHQtyDisc.setText("数量打折排程表");
    btnTTHQtyDisc.addActionListener(new MainFrame_btnTTHQtyDisc_actionAdapter(this));
    btnTTHDep.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHDep.setMaximumSize(new Dimension(153, 23));
    btnTTHDep.setMinimumSize(new Dimension(153, 23));
    btnTTHDep.setPreferredSize(new Dimension(153, 23));
    btnTTHDep.setText("部门资料");
    btnTTHDep.addActionListener(new MainFrame_btnTTHDep_actionAdapter(this));
    btnTTHAdv.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHAdv.setMaximumSize(new Dimension(153, 23));
    btnTTHAdv.setMinimumSize(new Dimension(153, 23));
    btnTTHAdv.setPreferredSize(new Dimension(153, 23));
    btnTTHAdv.setText("广告词");
    btnTTHAdv.addActionListener(new MainFrame_btnTTHAdv_actionAdapter(this));
    btnTTHTc.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHTc.setMaximumSize(new Dimension(153, 23));
    btnTTHTc.setMinimumSize(new Dimension(153, 23));
    btnTTHTc.setPreferredSize(new Dimension(153, 23));
    btnTTHTc.setText("套餐资料");
    btnTTHTc.addActionListener(new MainFrame_btnTTHTc_actionAdapter(this));
    btnTTHFdRkd.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHFdRkd.setMaximumSize(new Dimension(153, 23));
    btnTTHFdRkd.setMinimumSize(new Dimension(153, 23));
    btnTTHFdRkd.setPreferredSize(new Dimension(153, 23));
    btnTTHFdRkd.setText("分店入库单");
    btnTTHFdRkd.addActionListener(new MainFrame_btnTTHFdRkd_actionAdapter(this));
    btnTTHFdThd.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHFdThd.setMaximumSize(new Dimension(153, 23));
    btnTTHFdThd.setMinimumSize(new Dimension(153, 23));
    btnTTHFdThd.setPreferredSize(new Dimension(153, 23));
    btnTTHFdThd.setText("分店退货单");
    btnTTHFdThd.addActionListener(new MainFrame_btnTTHFdThd_actionAdapter(this));
    btnTTHFdPdd.setFont(new java.awt.Font("宋体", 0, 12));
    btnTTHFdPdd.setMaximumSize(new Dimension(153, 23));
    btnTTHFdPdd.setMinimumSize(new Dimension(153, 23));
    btnTTHFdPdd.setPreferredSize(new Dimension(153, 23));
    btnTTHFdPdd.setText("分店盘点单");
    btnTTHFdPdd.addActionListener(new MainFrame_btnTTHFdPdd_actionAdapter(this));
    btnHTTXRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTXRpt.setMaximumSize(new Dimension(153, 23));
    btnHTTXRpt.setMinimumSize(new Dimension(153, 23));
    btnHTTXRpt.setPreferredSize(new Dimension(153, 23));
    btnHTTXRpt.setText("读日销售报表");
    btnHTTXRpt.addActionListener(new MainFrame_btnHTTXRpt_actionAdapter(this));
    btnHTTZRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTZRpt.setMaximumSize(new Dimension(153, 23));
    btnHTTZRpt.setMinimumSize(new Dimension(153, 23));
    btnHTTZRpt.setPreferredSize(new Dimension(153, 23));
    btnHTTZRpt.setText("清日销售报表");
    btnHTTZRpt.addActionListener(new MainFrame_btnHTTZRpt_actionAdapter(this));
    btnHTTTr.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTTr.setMaximumSize(new Dimension(153, 23));
    btnHTTTr.setMinimumSize(new Dimension(153, 23));
    btnHTTTr.setPreferredSize(new Dimension(153, 23));
    btnHTTTr.setText("交易明细报表");
    btnHTTTr.addActionListener(new MainFrame_btnHTTTr_actionAdapter(this));
    btnHTTPluData.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTPluData.setMaximumSize(new Dimension(153, 23));
    btnHTTPluData.setMinimumSize(new Dimension(153, 23));
    btnHTTPluData.setPreferredSize(new Dimension(153, 23));
    btnHTTPluData.setText("单品数据");
    btnHTTPluData.addActionListener(new MainFrame_btnHTTPluData_actionAdapter(this));
    btnHTTDep.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTDep.setMaximumSize(new Dimension(153, 23));
    btnHTTDep.setMinimumSize(new Dimension(153, 23));
    btnHTTDep.setPreferredSize(new Dimension(153, 23));
    btnHTTDep.setText("部门数据");
    btnHTTDep.addActionListener(new MainFrame_btnHTTDep_actionAdapter(this));
    btnHTTPXRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTPXRpt.setMaximumSize(new Dimension(153, 23));
    btnHTTPXRpt.setMinimumSize(new Dimension(153, 23));
    btnHTTPXRpt.setPreferredSize(new Dimension(153, 23));
    btnHTTPXRpt.setText("读区间日销售报表");
    btnHTTPXRpt.addActionListener(new MainFrame_btnHTTPXRpt_actionAdapter(this));
    btnHTTPZRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTPZRpt.setMaximumSize(new Dimension(153, 23));
    btnHTTPZRpt.setMinimumSize(new Dimension(153, 23));
    btnHTTPZRpt.setPreferredSize(new Dimension(153, 23));
    btnHTTPZRpt.setText("清区间日销售报表");
    btnHTTPZRpt.addActionListener(new MainFrame_btnHTTPZRpt_actionAdapter(this));
    btnHTTXPluRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTXPluRpt.setMaximumSize(new Dimension(153, 23));
    btnHTTXPluRpt.setMinimumSize(new Dimension(153, 23));
    btnHTTXPluRpt.setPreferredSize(new Dimension(153, 23));
    btnHTTXPluRpt.setText("读单品报表");
    btnHTTXPluRpt.addActionListener(new MainFrame_btnHTTXPluRpt_actionAdapter(this));
    btnHTTZPluRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTZPluRpt.setMaximumSize(new Dimension(153, 23));
    btnHTTZPluRpt.setMinimumSize(new Dimension(153, 23));
    btnHTTZPluRpt.setPreferredSize(new Dimension(153, 23));
    btnHTTZPluRpt.setText("清单品报表");
    btnHTTZPluRpt.addActionListener(new MainFrame_btnHTTZPluRpt_actionAdapter(this));
    btnHTTHourlyRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTHourlyRpt.setMaximumSize(new Dimension(153, 23));
    btnHTTHourlyRpt.setMinimumSize(new Dimension(153, 23));
    btnHTTHourlyRpt.setPreferredSize(new Dimension(153, 23));
    btnHTTHourlyRpt.setText("时段报表");
    btnHTTHourlyRpt.addActionListener(new MainFrame_btnHTTHourlyRpt_actionAdapter(this));
    btnHTTSpRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTSpRpt.setMaximumSize(new Dimension(153, 23));
    btnHTTSpRpt.setMinimumSize(new Dimension(153, 23));
    btnHTTSpRpt.setPreferredSize(new Dimension(153, 23));
    btnHTTSpRpt.setText("促销员报表");
    btnHTTSpRpt.addActionListener(new MainFrame_btnHTTSpRpt_actionAdapter(this));
    btnHTTXZZRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTXZZRpt.setMaximumSize(new Dimension(153, 23));
    btnHTTXZZRpt.setMinimumSize(new Dimension(153, 23));
    btnHTTXZZRpt.setPreferredSize(new Dimension(153, 23));
    btnHTTXZZRpt.setText("读桌帐报表");
    btnHTTXZZRpt.addActionListener(new MainFrame_btnHTTXZZRpt_actionAdapter(this));
    btnHTTZZZRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTZZZRpt.setMaximumSize(new Dimension(153, 23));
    btnHTTZZZRpt.setMinimumSize(new Dimension(153, 23));
    btnHTTZZZRpt.setPreferredSize(new Dimension(153, 23));
    btnHTTZZZRpt.setText("清桌帐报表");
    btnHTTZZZRpt.addActionListener(new MainFrame_btnHTTZZZRpt_actionAdapter(this));
    btnHTTFdRpt.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTFdRpt.setMaximumSize(new Dimension(153, 23));
    btnHTTFdRpt.setMinimumSize(new Dimension(153, 23));
    btnHTTFdRpt.setPreferredSize(new Dimension(153, 23));
    btnHTTFdRpt.setText("分店资料报表");
    btnHTTFdRpt.addActionListener(new MainFrame_btnHTTFdRpt_actionAdapter(this));
    btnHTTParam.setFont(new java.awt.Font("宋体", 0, 12));
    btnHTTParam.setMaximumSize(new Dimension(153, 23));
    btnHTTParam.setMinimumSize(new Dimension(153, 23));
    btnHTTParam.setPreferredSize(new Dimension(153, 23));
    btnHTTParam.setText("收银机参数设定");
    btnHTTParam.addActionListener(new MainFrame_btnHTTParam_actionAdapter(this));
    btnTestComm.setFont(new java.awt.Font("宋体", 0, 12));
    btnTestComm.setText("串口通讯测试");
    btnTestComm.addActionListener(new MainFrame_btnTestComm_actionAdapter(this));
    pnlRegEcr.add(edIP, new GridBagConstraints(1, 1, 2, 1, 0.0, 0.0
                                               , GridBagConstraints.WEST,
                                               GridBagConstraints.NONE,
                                               new Insets(5, 4, 5, 0), 50, 0));
    pnlRegEcr.add(cbxEcrId, new GridBagConstraints(1, 0, 2, 1, 0.0, 0.0
        , GridBagConstraints.WEST, GridBagConstraints.NONE,
        new Insets(5, 4, 5, 0), 98, 0));
    pnlRegEcr.add(cbxProtocol, new GridBagConstraints(4, 0, 1, 1, 0.0, 0.0
        , GridBagConstraints.CENTER, GridBagConstraints.NONE,
        new Insets(5, 4, 5, 41), 62, 0));
    pnlRegEcr.add(edCommName, new GridBagConstraints(1, 2, 2, 1, 0.0, 0.0
        , GridBagConstraints.WEST, GridBagConstraints.NONE,
        new Insets(5, 4, 5, 4), 99, 0));
    pnlRegEcr.add(jLabel1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
                                                  , GridBagConstraints.CENTER,
                                                  GridBagConstraints.NONE,
                                                  new Insets(0, 35, 0, 0), 0, 0));
    pnlRegEcr.add(chkbIsDebug, new GridBagConstraints(1, 3, 2, 1, 0.0, 0.0
        , GridBagConstraints.WEST, GridBagConstraints.NONE,
        new Insets(5, 4, 5, 0), 32, 0));
    pnlRegEcr.add(jLabel4, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0
                                                  , GridBagConstraints.EAST,
                                                  GridBagConstraints.NONE,
                                                  new Insets(0, 0, 0, 4), 10, 0));
    pnlRegEcr.add(jLabel5, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
                                                  , GridBagConstraints.CENTER,
                                                  GridBagConstraints.NONE,
                                                  new Insets(0, 0, 0, 0), 0, 0));
    pnlRegEcr.add(jLabel6, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0
                                                  , GridBagConstraints.CENTER,
                                                  GridBagConstraints.NONE,
                                                  new Insets(0, 0, 0, 0), 0, 0));
    pnlRegEcr.add(jLabel7, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0
                                                  , GridBagConstraints.CENTER,
                                                  GridBagConstraints.NONE,
                                                  new Insets(0, 0, 0, 0), 0, 0));
    pnlRegEcr.add(jLabel3, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0
                                                  , GridBagConstraints.EAST,
                                                  GridBagConstraints.NONE,
                                                  new Insets(0, 0, 0, 4), 0, 0));
    pnlRegEcr.add(jLabel2, new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0
                                                  , GridBagConstraints.EAST,
                                                  GridBagConstraints.NONE,
                                                  new Insets(0, 38, 0, 4), 0, 0));
    pnlRegEcr.add(btnRegEcr, new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0
        , GridBagConstraints.CENTER, GridBagConstraints.NONE,
        new Insets(9, 0, 4, 0), 0, 0));
    pnlRegEcr.add(chkbIsModem, new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0
        , GridBagConstraints.CENTER, GridBagConstraints.NONE,
        new Insets(5, 4, 5, 12), 0, 0));
    pnlRegEcr.add(edPort, new GridBagConstraints(4, 1, 2, 1, 0.0, 0.0
                                                 , GridBagConstraints.WEST,
                                                 GridBagConstraints.NONE,
                                                 new Insets(0, 4, 0, 0), 55, 0));
    pnlRegEcr.add(edPhoneNo, new GridBagConstraints(1, 4, 4, 1, 0.0, 0.0
        , GridBagConstraints.SOUTHWEST, GridBagConstraints.NONE,
        new Insets(5, 4, 5, 0), 240, 0));
    pnlRegEcr.add(edBaudRate, new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0
        , GridBagConstraints.WEST, GridBagConstraints.NONE,
        new Insets(0, 4, 0, 16), 49, 0));
    pnlTxtToHex.add(btnTTHPLU, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHMemCard, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHMemRate, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHMemRel, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHSchedule, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHPluKey, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHFtpPluKey, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHClerk, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHParam, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHQtyDisc, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHDep, new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHAdv, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHTc, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHFdRkd, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHFdThd, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlTxtToHex.add(btnTTHFdPdd, new GridBagConstraints(2, 4, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpZRpt,          new GridBagConstraints(0, 1, 2, 1, 0.0, 0.0
            ,GridBagConstraints.SOUTH, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpXRpt,          new GridBagConstraints(0, 0, 2, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTXRpt, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTZRpt, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTTr, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTPluData, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTDep, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTPXRpt, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTPZRpt, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTXPluRpt, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTZPluRpt, new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTHourlyRpt, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTSpRpt, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTXZZRpt, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTZZZRpt, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTFdRpt, new GridBagConstraints(2, 4, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlHexToTxt.add(btnHTTParam, new GridBagConstraints(2, 5, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlOther.add(btnTestComm,     new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.SOUTH, GridBagConstraints.NONE, new Insets(0, 1, 0, 26), 0, 0));
    pnlDownload.add(btnDnEPLU,  new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    contentPane.add(jScrollPane1, BorderLayout.CENTER);
    contentPane.add(tabOwn, BorderLayout.NORTH);
    pnlUpload.add(btnUpPluData,         new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpTr,         new GridBagConstraints(0, 2, 2, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(jTextField1,         new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 36, 0));
    pnlUpload.add(jButton3,      new GridBagConstraints(0, 4, 2, 1, 0.0, 0.0
            ,GridBagConstraints.SOUTH, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpDepData, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpPXRpt, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpPZRpt, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpXPluRpt, new GridBagConstraints(2, 4, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpZPluRpt, new GridBagConstraints(2, 5, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpHourlyRpt, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpSpRpt, new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpXZZRpt, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpZZZRpt, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpFdRpt, new GridBagConstraints(3, 4, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(btnUpParam, new GridBagConstraints(3, 5, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlUpload.add(jLabel8, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0
            ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnMemCard, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnMemRate,  new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnMemRel,  new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnSchedule,  new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnPluKey,  new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnFtpPluKey,  new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnClerk,  new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnParam,  new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnQtyDisc,  new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnDep,  new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnAdv,  new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnTc,  new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnFdRkd,  new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnFdThd,  new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnFdPdd,  new GridBagConstraints(2, 4, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnTimeSync,  new GridBagConstraints(2, 5, 1, 1, 0.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    pnlDownload.add(btnDnUPLU,            new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
            ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
    tabOwn.add(pnlRegEcr, "pnlRegEcr");
    tabOwn.add(pnlTxtToHex, "pnlTxtToHex");
    tabOwn.add(pnlUpload, "pnlUpload");
    tabOwn.add(pnlHexToTxt, "pnlHexToTxt");
    tabOwn.add(pnlOther, "pnlOther");
    tabOwn.add(pnlDownload, "pnlDownload");
    //    tabOwn.setSelectedComponent(pnlRegEcr);
//    tabOwn.setSelectedIndex(0);

  }

  //Overridden so we can exit when window is closed

  protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
      FreeObj();
      System.exit(0);
    }
  }

  private int TransDnTask(int id, String dlgTitle){
    int iRet =0;
    fc.setDialogTitle("打开 "+dlgTitle+" HEX文件");
    if (JFileChooser.APPROVE_OPTION == fc.showOpenDialog(this)) {
      String sFileName = fc.getSelectedFile().getPath();
      fc.setDialogTitle("保存 "+dlgTitle+" LOG文件");
      if (JFileChooser.APPROVE_OPTION == fc.showSaveDialog(this)) {
        String sLogFileName = fc.getSelectedFile().getPath();
        switch(id) {
          case 1: iRet = cr5x.TransDnEPLU(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 2: iRet = cr5x.TransDnUPLU(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 3: iRet = cr5x.TransDnPLUKey(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 4: iRet = cr5x.TransDnFtpPluKey(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 5: iRet = cr5x.TransDnParam(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 6: iRet = cr5x.TransDnClerk(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 7: iRet = cr5x.TransDnVoice(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 8: iRet = cr5x.TransDnMemCard(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 9: iRet = cr5x.TransDnMemRate(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 10:iRet = cr5x.TransDnMemRel(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 11:iRet = cr5x.TransDnSchedule(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 12:iRet = cr5x.TransDnQtyDisc(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 13:iRet = cr5x.TransDnDep(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 14:iRet = cr5x.TransDnAdv(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 15:iRet = cr5x.TransDnTc(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 16:iRet = cr5x.TransDnFdRkd(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 17:iRet = cr5x.TransDnFdThd(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 18:iRet = cr5x.TransDnFdPdd(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 19:iRet = cr5x.TransDnMgr(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 20:iRet = cr5x.TransDnMemCum(Integer.parseInt(sEcrId), sFileName, sLogFileName); break;
          case 21:
          case 22:
          case 23:
        }
      }
    }
    return iRet;

  }

  private int TransUpTask(int id, String dlgTitle){
    int iRet = 0;
    fc.setDialogTitle("保存 " + dlgTitle + " HEX文件");
    if (JFileChooser.APPROVE_OPTION == fc.showSaveDialog(this)) {
      String sFileName = fc.getSelectedFile().getPath();
      fc.setDialogTitle("保存 " + dlgTitle + " LOG文件");
      if (JFileChooser.APPROVE_OPTION == fc.showSaveDialog(this)) {
        String sLogFileName = fc.getSelectedFile().getPath();
        switch (id) {
          case 1:
            iRet = cr5x.TransUpXRpt(Integer.parseInt(sEcrId), sFileName,
                                    sLogFileName);
            break;
          case 2:
            iRet = cr5x.TransUpZRpt(Integer.parseInt(sEcrId), sFileName,
                                    sLogFileName);
            break;
          case 3:
            iRet = cr5x.TransUpTrRpt(Integer.parseInt(sEcrId), sFileName,
                                     sLogFileName);
            break;
          case 4:
            iRet = cr5x.TransUpPluData(Integer.parseInt(sEcrId), sFileName,
                                       sLogFileName);
            break;
          case 5:
            iRet = cr5x.TransUpDepData(Integer.parseInt(sEcrId), sFileName,
                                       sLogFileName);
            break;
          case 6:
            iRet = cr5x.TransUpPXRpt(Integer.parseInt(sEcrId), sFileName,
                                     sLogFileName);
            break;
          case 7:
            iRet = cr5x.TransUpPZRpt(Integer.parseInt(sEcrId), sFileName,
                                     sLogFileName);
            break;
          case 8:
            iRet = cr5x.TransUpXPluRpt(Integer.parseInt(sEcrId), sFileName,
                                       sLogFileName);
            break;
          case 9:
            iRet = cr5x.TransUpZPluRpt(Integer.parseInt(sEcrId), sFileName,
                                       sLogFileName);
            break;
          case 10:
            iRet = cr5x.TransUpHourlyRpt(Integer.parseInt(sEcrId), sFileName,
                                         sLogFileName);
            break;
          case 11:
            iRet = cr5x.TransUpSpRpt(Integer.parseInt(sEcrId), sFileName,
                                     sLogFileName);
            break;
          case 12:
            iRet = cr5x.TransUpXZZRpt(Integer.parseInt(sEcrId), sFileName,
                                      sLogFileName);
            break;
          case 13:
            iRet = cr5x.TransUpZZZRpt(Integer.parseInt(sEcrId), sFileName,
                                      sLogFileName);
            break;
          case 14:
            iRet = cr5x.TransUpClerkRpt(Integer.parseInt(sEcrId), sFileName,
                                        sLogFileName);
            break;
          case 15:
            iRet = cr5x.TransUpFdRpt(Integer.parseInt(sEcrId), sFileName,
                                     sLogFileName);
            break;
          case 16:
            iRet = cr5x.TransUpParam(Integer.parseInt(sEcrId), sFileName,
                                     sLogFileName);
            break;
          case 17:
            iRet = cr5x.TransUpGrossProfit(Integer.parseInt(sEcrId),
                                           sFileName, sLogFileName);
            break;
          case 18:
            iRet = cr5x.TransUpMemCum(Integer.parseInt(sEcrId), sFileName,
                                      sLogFileName);
            break;
          case 19:
          case 20:
        }
      }
    }
    return iRet;
  }

  private boolean TransTxtToHex(int id, String dlgTitle){
    boolean bRet = false;
    fc.setDialogTitle("打开 " + dlgTitle + " TXT文件");
    if (JFileChooser.APPROVE_OPTION == fc.showOpenDialog(this)) {
      String sTxtFileName = fc.getSelectedFile().getPath();
      fc.setDialogTitle("保存 " + dlgTitle + " HEX文件");
      if (JFileChooser.APPROVE_OPTION == fc.showSaveDialog(this)) {
        String sHexFileName = fc.getSelectedFile().getPath();
        fc.setDialogTitle("保存 " + dlgTitle + " ERR文件");
        if (JFileChooser.APPROVE_OPTION == fc.showSaveDialog(this)) {
          String sErrFileName = fc.getSelectedFile().getPath();
          switch (id){
            case 1: bRet = cr5x.PLUTxtToHex(sTxtFileName,sHexFileName,sErrFileName,0,true); break;
            case 2: bRet = cr5x.PluKeyTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 3: bRet = cr5x.FtpPluKeyTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 4: bRet = cr5x.ClerkTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 5: bRet = cr5x.ParamTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 6: bRet = cr5x.MemCardTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 7: bRet = cr5x.MemRateTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 8: bRet = cr5x.MemRelTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 9: bRet = cr5x.ScheduleTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 10:bRet = cr5x.QtyDiscTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 11:bRet = cr5x.DepTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 12:bRet = cr5x.AdvTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 13:bRet = cr5x.FdRkdTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 14:bRet = cr5x.FdThdTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 15:bRet = cr5x.FdPddTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 16:bRet = cr5x.MgrTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
            case 17:bRet = cr5x.MemCumTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
          }
        }
      }
    }
    return bRet;
  }

  private boolean TransHexToTxt(int id, String dlgTitle){
    boolean bRet = false;
    fc.setDialogTitle("打开 " + dlgTitle + " HEX文件");
    if (JFileChooser.APPROVE_OPTION == fc.showOpenDialog(this)) {
      String sHexFileName = fc.getSelectedFile().getPath();
      fc.setDialogTitle("保存 " + dlgTitle + " TXT文件");
      if (JFileChooser.APPROVE_OPTION == fc.showSaveDialog(this)) {
        String sTxtFileName = fc.getSelectedFile().getPath();
        fc.setDialogTitle("保存 " + dlgTitle + " ERR文件");
        if (JFileChooser.APPROVE_OPTION == fc.showSaveDialog(this)) {
          String sErrFileName = fc.getSelectedFile().getPath();
          switch (id){
            case 1: bRet = cr5x.ParamHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
            case 2: bRet = cr5x.SaleRptHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
            case 3: bRet = cr5x.PluDataHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false,false);break;
            case 4: bRet = cr5x.DepDataHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
            case 5: bRet = cr5x.PXRptHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
            case 6: bRet = cr5x.PZRptHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
            case 7: bRet = cr5x.XPluRptHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
            case 8: bRet = cr5x.ZPluRptHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
            case 9: bRet = cr5x.HourlyRptHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
            case 10:bRet = cr5x.SPRptHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
            case 11:bRet = cr5x.XZZRptHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
            case 12:bRet = cr5x.ZZZRptHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
            case 13:bRet = cr5x.GrossProfitHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
            case 14:bRet = cr5x.MemCumHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
            case 15:bRet = cr5x.SaleDetailRptHexToTxt(sHexFileName,sTxtFileName,sTxtFileName+".item.txt",sTxtFileName+".pay.txt",sErrFileName,false);break;
          }
        }
      }
    }
    return bRet;
  }

  void btnRegEcr_actionPerformed(ActionEvent e) {
    cr5x.InitJavaEnv(new String("cr5xdll/MainFrame"));
    sEcrId = cbxEcrId.getSelectedItem().toString();
    if (cbxProtocol.getSelectedItem().equals("UDP")) {
      cr5x.RegECRUdp(Integer.parseInt(sEcrId),
                     edIP.getText(), new String("001"),
                     Integer.parseInt(edPort.getText()), true);
    }
    else {
      cr5x.RegECRCom(Integer.parseInt(sEcrId), edCommName.getText(),
                     edPhoneNo.getText(),
                     new String("001"), Integer.parseInt(edBaudRate.getText()),
                     chkbIsModem.isSelected(), chkbIsDebug.isSelected());
    }
  }

  void btnUpXRpt_actionPerformed(ActionEvent e) {
    TransUpTask(1,"读日销售报表");
  }

  void btnDnEPLU_actionPerformed(ActionEvent e) {
    TransDnTask(1,"单品资料");
  }

  void btnUpZRpt_actionPerformed(ActionEvent e) {
    TransUpTask(2,"清日销售报表");
  }

  void btnDnUPLU_actionPerformed(ActionEvent e) {
    TransDnTask(2,"单品资料");
  }

  void btnDnPluKey_actionPerformed(ActionEvent e) {
    TransDnTask(3,"单品热键");
  }

  void btnDnFtpPluKey_actionPerformed(ActionEvent e) {
    TransDnTask(4,"FTP称单品热键");
  }

  void btnDnParam_actionPerformed(ActionEvent e) {
    TransDnTask(5,"收银机参数");
  }

  void btnDnClerk_actionPerformed(ActionEvent e) {
    TransDnTask(6,"收银员资料");
  }

  void btnDnMemCard_actionPerformed(ActionEvent e) {
    TransDnTask(8,"特殊会员资料");
  }

  void btnDnMemRate_actionPerformed(ActionEvent e) {
    TransDnTask(9,"商品类别会员扣率");
  }

  void btnDnMemRel_actionPerformed(ActionEvent e) {
    TransDnTask(10,"商品类别关系表");
  }

  void btnDnSchedule_actionPerformed(ActionEvent e) {
    TransDnTask(11,"打折排程表");
  }

  void btnDnQtyDisc_actionPerformed(ActionEvent e) {
    TransDnTask(12,"数量打折排程表");
  }

  void btnDnDep_actionPerformed(ActionEvent e) {
    TransDnTask(13,"部门资料");
  }

  void btnDnAdv_actionPerformed(ActionEvent e) {
    TransDnTask(14,"广告词");
  }

  void btnDnTc_actionPerformed(ActionEvent e) {
    TransDnTask(15,"套餐资料");
  }

  void btnDnFdRkd_actionPerformed(ActionEvent e) {
    TransDnTask(16,"分店入库单");
  }

  void btnDnFdThd_actionPerformed(ActionEvent e) {
    TransDnTask(17,"分店退货单");
  }

  void btnDnFdPdd_actionPerformed(ActionEvent e) {
    TransDnTask(18,"分店盘点单");
  }

  void btnUpTr_actionPerformed(ActionEvent e) {
    TransUpTask(3,"上载交易明细报表");
  }

  void btnUpPluData_actionPerformed(ActionEvent e) {
    TransUpTask(4,"上载单品数据");
  }

  void btnUpDepData_actionPerformed(ActionEvent e) {
    TransUpTask(5,"上载部门数据报表");
  }

  void btnUpPXRpt_actionPerformed(ActionEvent e) {
    TransUpTask(6,"上载读区间日销售报表");
  }

  void btnUpPZRpt_actionPerformed(ActionEvent e) {
    TransUpTask(7,"上载清区间日销售报表");
  }

  void btnUpXPluRpt_actionPerformed(ActionEvent e) {
    TransUpTask(8,"上载读单品报表");
  }

  void btnUpZPluRpt_actionPerformed(ActionEvent e) {
    TransUpTask(9,"上载清单品报表");
  }

  void btnUpHourlyRpt_actionPerformed(ActionEvent e) {
    TransUpTask(10,"上载时段报表");
  }

  void btnUpSpRpt_actionPerformed(ActionEvent e) {
    TransUpTask(11,"上载促销员报表");
  }

  void btnUpXZZRpt_actionPerformed(ActionEvent e) {
    TransUpTask(12,"上载读桌帐报表");
  }

  void btnUpZZZRpt_actionPerformed(ActionEvent e) {
    TransUpTask(13,"上载清桌帐报表");
  }

  void btnUpFdRpt_actionPerformed(ActionEvent e) {
    TransUpTask(15,"上载分店资料报表");
  }

  void btnUpParam_actionPerformed(ActionEvent e) {
    TransUpTask(16,"上载收银机参数");
  }

  void btnTTHPLU_actionPerformed(ActionEvent e) {
    TransTxtToHex(1,"单品资料");
    JOptionPane.showMessageDialog(this,"单品资料转换完毕.");
  }

  void btnTTHPluKey_actionPerformed(ActionEvent e) {
    TransTxtToHex(2,"单品热键");
  }

  void btnTTHFtpPluKey_actionPerformed(ActionEvent e) {
    TransTxtToHex(3,"FTP称单品热键");
  }

  void btnTTHMemCard_actionPerformed(ActionEvent e) {
    TransTxtToHex(6,"特殊会员资料");
  }

  void btnTTHMemRate_actionPerformed(ActionEvent e) {
    TransTxtToHex(7,"商品类别会员扣率");
  }

  void btnTTHMemRel_actionPerformed(ActionEvent e) {
    TransTxtToHex(8,"商品类别关系表");
  }

  void btnTTHSchedule_actionPerformed(ActionEvent e) {
    TransTxtToHex(9,"商品打折排程表");
  }

  void btnTTHClerk_actionPerformed(ActionEvent e) {
    TransTxtToHex(4,"收银员资料");
  }

  void btnTTHParam_actionPerformed(ActionEvent e) {
    TransTxtToHex(5,"收银机参数设定");
  }

  void btnTTHQtyDisc_actionPerformed(ActionEvent e) {
    TransTxtToHex(10,"数量打折排程表");
  }

  void btnTTHDep_actionPerformed(ActionEvent e) {
    TransTxtToHex(11,"部门资料");
  }

  void btnTTHAdv_actionPerformed(ActionEvent e) {
    TransTxtToHex(12,"广告词");
  }

  void btnTTHTc_actionPerformed(ActionEvent e) {

  }

  void btnTTHFdRkd_actionPerformed(ActionEvent e) {
    TransTxtToHex(13,"分店入库单");
  }

  void btnTTHFdThd_actionPerformed(ActionEvent e) {
    TransTxtToHex(14,"分店退货单");
  }

  void btnTTHFdPdd_actionPerformed(ActionEvent e) {
    TransTxtToHex(15,"分店盘点单");

//    case 16:bRet = cr5x.MgrTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
//    case 17:bRet = cr5x.MemCumTxtToHex(sTxtFileName,sHexFileName,sErrFileName,false); break;
  }

  void btnHTTXRpt_actionPerformed(ActionEvent e) {
    TransHexToTxt(2,"日销售报表");
  }

  void btnHTTZRpt_actionPerformed(ActionEvent e) {
    TransHexToTxt(2,"日销售报表");
  }

  void btnHTTTr_actionPerformed(ActionEvent e) {
    TransHexToTxt(15,"交易明细报表");
  }

  void btnHTTPluData_actionPerformed(ActionEvent e) {
    TransHexToTxt(3,"单品数据");
  }

  void btnHTTDep_actionPerformed(ActionEvent e) {
    TransHexToTxt(4,"部门数据");
  }

  void btnHTTPXRpt_actionPerformed(ActionEvent e) {
    TransHexToTxt(5,"读区间日销售报表");
  }

  void btnHTTPZRpt_actionPerformed(ActionEvent e) {
    TransHexToTxt(6,"清区间日销售报表");
  }

  void btnHTTXPluRpt_actionPerformed(ActionEvent e) {
    TransHexToTxt(7,"读单品报表");
  }

  void btnHTTZPluRpt_actionPerformed(ActionEvent e) {
    TransHexToTxt(8,"清单品报表");
  }

  void btnHTTHourlyRpt_actionPerformed(ActionEvent e) {
    TransHexToTxt(9,"时段报表");
  }

  void btnHTTSpRpt_actionPerformed(ActionEvent e) {
    TransHexToTxt(10,"促销员报表");
  }

  void btnHTTXZZRpt_actionPerformed(ActionEvent e) {
    TransHexToTxt(11,"读桌帐报表");
  }

  void btnHTTZZZRpt_actionPerformed(ActionEvent e) {
    TransHexToTxt(12,"清桌帐报表");
  }

  void btnHTTFdRpt_actionPerformed(ActionEvent e) {

  }

  void btnHTTParam_actionPerformed(ActionEvent e) {
    TransHexToTxt(1,"收银机参数设定");

//    case 13:bRet = cr5x.GrossProfitHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;
//    case 14:bRet = cr5x.MemCumHexToTxt(sHexFileName,sTxtFileName,sErrFileName,false);break;

  }

  void btnTestComm_actionPerformed(ActionEvent e) {
    int iRet = cr5x.TransTestComm(Integer.parseInt(sEcrId));
    if (iRet==2){
      JOptionPane.showMessageDialog(this,"通讯失败");
    }
    else
    if (iRet==3){
      JOptionPane.showMessageDialog(this,"通讯成功");
    }

  }

}

class MainFrame_btnRegEcr_actionAdapter
    implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnRegEcr_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void actionPerformed(ActionEvent e) {
    adaptee.btnRegEcr_actionPerformed(e);
  }
}

class MainFrame_btnUpXRpt_actionAdapter
    implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpXRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpXRpt_actionPerformed(e);
  }
}

class MainFrame_btnDnEPLU_actionAdapter
    implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnEPLU_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }

  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnEPLU_actionPerformed(e);
  }
}

class MainFrame_btnUpZRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpZRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpZRpt_actionPerformed(e);
  }
}

class MainFrame_btnDnUPLU_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnUPLU_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnUPLU_actionPerformed(e);
  }
}

class MainFrame_btnDnPluKey_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnPluKey_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnPluKey_actionPerformed(e);
  }
}

class MainFrame_btnDnFtpPluKey_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnFtpPluKey_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnFtpPluKey_actionPerformed(e);
  }
}

class MainFrame_btnDnParam_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnParam_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnParam_actionPerformed(e);
  }
}

class MainFrame_btnDnClerk_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnClerk_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnClerk_actionPerformed(e);
  }
}

class MainFrame_btnDnMemCard_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnMemCard_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnMemCard_actionPerformed(e);
  }
}

class MainFrame_btnDnMemRate_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnMemRate_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnMemRate_actionPerformed(e);
  }
}

class MainFrame_btnDnMemRel_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnMemRel_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnMemRel_actionPerformed(e);
  }
}

class MainFrame_btnDnSchedule_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnSchedule_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnSchedule_actionPerformed(e);
  }
}

class MainFrame_btnDnQtyDisc_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnQtyDisc_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnQtyDisc_actionPerformed(e);
  }
}

class MainFrame_btnDnDep_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnDep_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnDep_actionPerformed(e);
  }
}

class MainFrame_btnDnAdv_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnAdv_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnAdv_actionPerformed(e);
  }
}

class MainFrame_btnDnTc_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnTc_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnTc_actionPerformed(e);
  }
}

class MainFrame_btnDnFdRkd_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnFdRkd_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnFdRkd_actionPerformed(e);
  }
}

class MainFrame_btnDnFdThd_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnFdThd_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnFdThd_actionPerformed(e);
  }
}

class MainFrame_btnDnFdPdd_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnDnFdPdd_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnDnFdPdd_actionPerformed(e);
  }
}

class MainFrame_btnUpTr_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpTr_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpTr_actionPerformed(e);
  }
}

class MainFrame_btnUpPluData_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpPluData_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpPluData_actionPerformed(e);
  }
}

class MainFrame_btnUpDepData_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpDepData_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpDepData_actionPerformed(e);
  }
}

class MainFrame_btnUpPXRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpPXRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpPXRpt_actionPerformed(e);
  }
}

class MainFrame_btnUpPZRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpPZRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpPZRpt_actionPerformed(e);
  }
}

class MainFrame_btnUpXPluRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpXPluRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpXPluRpt_actionPerformed(e);
  }
}

class MainFrame_btnUpZPluRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpZPluRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpZPluRpt_actionPerformed(e);
  }
}

class MainFrame_btnUpHourlyRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpHourlyRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpHourlyRpt_actionPerformed(e);
  }
}

class MainFrame_btnUpSpRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpSpRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpSpRpt_actionPerformed(e);
  }
}

class MainFrame_btnUpXZZRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpXZZRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpXZZRpt_actionPerformed(e);
  }
}

class MainFrame_btnUpZZZRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpZZZRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpZZZRpt_actionPerformed(e);
  }
}

class MainFrame_btnUpFdRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpFdRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpFdRpt_actionPerformed(e);
  }
}

class MainFrame_btnUpParam_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnUpParam_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnUpParam_actionPerformed(e);
  }
}

class MainFrame_btnTTHPLU_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHPLU_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHPLU_actionPerformed(e);
  }
}

class MainFrame_btnTTHPluKey_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHPluKey_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHPluKey_actionPerformed(e);
  }
}

class MainFrame_btnTTHFtpPluKey_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHFtpPluKey_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHFtpPluKey_actionPerformed(e);
  }
}

class MainFrame_btnTTHMemCard_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHMemCard_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHMemCard_actionPerformed(e);
  }
}

class MainFrame_btnTTHMemRate_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHMemRate_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHMemRate_actionPerformed(e);
  }
}

class MainFrame_btnTTHMemRel_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHMemRel_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHMemRel_actionPerformed(e);
  }
}

class MainFrame_btnTTHSchedule_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHSchedule_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHSchedule_actionPerformed(e);
  }
}

class MainFrame_btnTTHClerk_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHClerk_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHClerk_actionPerformed(e);
  }
}

class MainFrame_btnTTHParam_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHParam_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHParam_actionPerformed(e);
  }
}

class MainFrame_btnTTHQtyDisc_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHQtyDisc_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHQtyDisc_actionPerformed(e);
  }
}

class MainFrame_btnTTHDep_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHDep_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHDep_actionPerformed(e);
  }
}

class MainFrame_btnTTHAdv_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHAdv_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHAdv_actionPerformed(e);
  }
}

class MainFrame_btnTTHTc_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHTc_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHTc_actionPerformed(e);
  }
}

class MainFrame_btnTTHFdRkd_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHFdRkd_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHFdRkd_actionPerformed(e);
  }
}

class MainFrame_btnTTHFdThd_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHFdThd_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHFdThd_actionPerformed(e);
  }
}

class MainFrame_btnTTHFdPdd_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTTHFdPdd_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTTHFdPdd_actionPerformed(e);
  }
}

class MainFrame_btnHTTXRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTXRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTXRpt_actionPerformed(e);
  }
}

class MainFrame_btnHTTZRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTZRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTZRpt_actionPerformed(e);
  }
}

class MainFrame_btnHTTTr_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTTr_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTTr_actionPerformed(e);
  }
}

class MainFrame_btnHTTPluData_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTPluData_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTPluData_actionPerformed(e);
  }
}

class MainFrame_btnHTTDep_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTDep_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTDep_actionPerformed(e);
  }
}

class MainFrame_btnHTTPXRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTPXRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTPXRpt_actionPerformed(e);
  }
}

class MainFrame_btnHTTPZRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTPZRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTPZRpt_actionPerformed(e);
  }
}

class MainFrame_btnHTTXPluRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTXPluRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTXPluRpt_actionPerformed(e);
  }
}

class MainFrame_btnHTTZPluRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTZPluRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTZPluRpt_actionPerformed(e);
  }
}

class MainFrame_btnHTTHourlyRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTHourlyRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTHourlyRpt_actionPerformed(e);
  }
}

class MainFrame_btnHTTSpRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTSpRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTSpRpt_actionPerformed(e);
  }
}

class MainFrame_btnHTTXZZRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTXZZRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTXZZRpt_actionPerformed(e);
  }
}

class MainFrame_btnHTTZZZRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTZZZRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTZZZRpt_actionPerformed(e);
  }
}

class MainFrame_btnHTTFdRpt_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTFdRpt_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTFdRpt_actionPerformed(e);
  }
}

class MainFrame_btnHTTParam_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnHTTParam_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnHTTParam_actionPerformed(e);
  }
}

class MainFrame_btnTestComm_actionAdapter implements java.awt.event.ActionListener {
  MainFrame adaptee;

  MainFrame_btnTestComm_actionAdapter(MainFrame adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.btnTestComm_actionPerformed(e);
  }
}
